﻿using System;
using UnityEngine;

// Token: 0x0200028D RID: 653
public class PlaySystemOpenCloseSE : MonoBehaviour
{
	// Token: 0x060010DC RID: 4316 RVA: 0x0006B064 File Offset: 0x00069264
	private void Start()
	{
		if (this.gameCtrl == null)
		{
			this.Setup();
		}
	}

	// Token: 0x060010DD RID: 4317 RVA: 0x0006B080 File Offset: 0x00069280
	private void Setup()
	{
		this.gameCtrl = UnityEngine.Object.FindObjectOfType<GameControl>();
	}

	// Token: 0x060010DE RID: 4318 RVA: 0x0006B090 File Offset: 0x00069290
	public void Play(bool isOpen)
	{
		AudioClip clip = (!isOpen) ? this.gameCtrl.audioCtrl.systemSE_close : this.gameCtrl.audioCtrl.systemSE_open;
		this.gameCtrl.audioCtrl.Play2DSE(clip);
	}

	// Token: 0x040011F4 RID: 4596
	private GameControl gameCtrl;
}
